package com.eunion.web.admin.vo;

import java.util.Map;

import org.apache.commons.lang3.builder.ReflectionToStringBuilder;

public class JsonMapVo {

    private boolean flag;

    private String msg;

    private Map<Object, Object> map;

    public JsonMapVo() {
        super();
    }

    public JsonMapVo(boolean flag) {
        super();
        this.flag = flag;
    }

    public JsonMapVo(boolean flag, String msg) {
        super();
        this.flag = flag;
        this.msg = msg;
    }

    public JsonMapVo(Map<Object, Object> datas) {
        super();
        this.flag = true;
        this.map = datas;
    }

    public JsonMapVo(boolean flag, String msg, Map<Object, Object> datas) {
        super();
        this.flag = flag;
        this.msg = msg;
        this.map = datas;
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Map<Object, Object> getMap() {
        return map;
    }

    public void setMap(Map<Object, Object> map) {
        this.map = map;
    }

    @Override
    public String toString() {
        return ReflectionToStringBuilder.toString(this);
    }
}
